package by.exposit.domain;

import java.util.Date;

/**
 * Created by HaRiA on 24.07.2014.
 */

public class Comment
{


    private Long commentId;

    private User user;

    private Date postTime;

    private Request request;

    private String text;

    public Comment()
    {}
    public Comment(User user,Date postTime,Request request, String text) {
        this.user=user;
        this.postTime =   postTime;
        this.request = request;
    }

    public Comment(Long commentId,User user,Date postTime,Request request,String text) {
        this.commentId = commentId;
        this.user=user;
        this.postTime = postTime;
        this.request = request;
        this.text = text;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public User getUserId() {
        return user;
    }

    public  void setUserId(User userId) {
        this.user = userId;
    }

    public Date getPostTime() {
        return postTime;
    }

    void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public Request getRequestId() {
        return request;
    }

    void setRequestId(Request request) {
        this.request = request;
    }
    void setText(String text)
    {
        this.text = text;
    }
}
